package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-销售退货物料明细其他信息对象 erp_king_sale_refund_detail_material_info
 *
 * @author wutao
 * @date 2024-07-21
 */
@TableName("erp_king_sale_refund_detail_material_info")
@ApiModel(value = "erp_king_sale_refund_detail_material_info对象", description = "金蝶-销售退货物料明细其他信息")
@Data
@Accessors( chain = true )
public class KingSaleRefundDetailMaterialEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 销售退货单id
     */
    @ApiModelProperty("销售退货单id")
    @TableField("sale_refund_id")
    @Excel(name = "销售退货单id")
    private String saleRefundId;

    /**
     * 销售退货单详情id
     */
    @ApiModelProperty("销售退货单详情id")
    @TableField("sale_refund_material_id")
    @Excel(name = "销售退货单详情id")
    private String saleRefundMaterialId;

    /**
     * 物料id
     */
    @ApiModelProperty("物料id")
    @TableField("material_id")
    @Excel(name = "物料id")
    private String materialId;

    /**
     * 物料编码
     */
    @ApiModelProperty("物料编码")
    @TableField("material_code")
    @Excel(name = "物料编码")
    private String materialCode;

    /**
     * 物料名称
     */
    @ApiModelProperty("物料名称")
    @TableField("material_name")
    @Excel(name = "物料名称")
    private String materialName;

    /**
     * BOM版本
     */
    @ApiModelProperty("BOM版本")
    @TableField("bom_ver")
    @Excel(name = "BOM版本")
    private String bomVer;

    /**
     * 批号
     */
    @ApiModelProperty("批号")
    @TableField("batch_num")
    @Excel(name = "批号")
    private String batchNum;

    /**
     * 生产日期
     */
    @ApiModelProperty("生产日期")
    @TableField("manufacture_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date manufactureTime;

    /**
     * 保质期
     */
    @ApiModelProperty("保质期")
    @TableField("warranty_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保质期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warrantyTime;

    /**
     * 保质期单位
     */
    @ApiModelProperty("保质期单位")
    @TableField("warranty_unit")
    @Excel(name = "保质期单位")
    private String warrantyUnit;

    /**
     * 有效期至
     */
    @ApiModelProperty("有效期至")
    @TableField("valid_to")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期至", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validTo;

    /**
     * 入库日期
     */
    @ApiModelProperty("入库日期")
    @TableField("inventory_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inventoryTime;

    /**
     * 库存单位
     */
    @ApiModelProperty("库存单位")
    @TableField("inventory_unit")
    @Excel(name = "库存单位")
    private String inventoryUnit;

    /**
     * 实退数量
     */
    @ApiModelProperty("实退数量")
    @TableField("refund_num")
    @Excel(name = "实退数量")
    private String refundNum;

    /**
     * 销售单位
     */
    @ApiModelProperty("销售单位")
    @TableField("sale_unit")
    @Excel(name = "销售单位")
    private String saleUnit;

    /**
     * 销售数量
     */
    @ApiModelProperty("销售数量")
    @TableField("sale_num")
    @Excel(name = "销售数量")
    private String saleNum;

    /**
     * 计价单位
     */
    @ApiModelProperty("计价单位")
    @TableField("pricing_unit")
    @Excel(name = "计价单位")
    private String pricingUnit;

    /**
     * 计价数量
     */
    @ApiModelProperty("计价数量")
    @TableField("pricing_num")
    @Excel(name = "计价数量")
    private String pricingNum;

    /**
     * 辅单位
     */
    @ApiModelProperty("辅单位")
    @TableField("auxiliary_unit")
    @Excel(name = "辅单位")
    private String auxiliaryUnit;

    /**
     * 数量(辅单位)
     */
    @ApiModelProperty("数量(辅单位)")
    @TableField("auxiliary_num")
    @Excel(name = "数量(辅单位)")
    private String auxiliaryNum;

    /**
     * 物料类别
     */
    @ApiModelProperty("物料类别")
    @TableField("material_type")
    @Excel(name = "物料类别")
    private String materialType;

    /**
     * 货主类型
     */
    @ApiModelProperty("货主类型")
    @TableField("cargo_owner_org")
    @Excel(name = "货主类型")
    private String cargoOwnerOrg;

    /**
     * 货主
     */
    @ApiModelProperty("货主")
    @TableField("cargo_owner")
    @Excel(name = "货主")
    private String cargoOwner;

    /**
     * 保管者类型
     */
    @ApiModelProperty("保管者类型")
    @TableField("preserver_type")
    @Excel(name = "保管者类型")
    private String preserverType;

    /**
     * 保管者
     */
    @ApiModelProperty("保管者")
    @TableField("preserver")
    @Excel(name = "保管者")
    private String preserver;

    /**
     * VMI业务
     */
    @ApiModelProperty("VMI业务")
    @TableField("is_vmi")
    @Excel(name = "VMI业务")
    private String isVmi;

    /**
     * 是否再用
     */
    @ApiModelProperty("是否再用")
    @TableField("is_used")
    @Excel(name = "是否再用")
    private String isUsed;


}
